﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminPurchaseOrderApproval.aspx.cs"
    Inherits="Main_Inventory_AdminPurchaseOrderApproval" %>

<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%@ Register Src="~/User Controls/CommonControls.ascx" TagName="CommonControls" TagPrefix="MyControls" %>
<%@ Register Src="~/User Controls/Pager.ascx" TagPrefix="custom" TagName="Pager" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/accounts.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />
    <script src="../../JavaScript/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>
    <script src="../../JavaScript/Commons.js" type="text/javascript"></script>
    <script type="text/javascript">
        function visibletext() {
            var value = document.getElementById("DdlStatus").value;
            if (value == 5) //Reject
            {
                document.getElementById("txtremark").value = '';
                document.getElementById("txtremark").style.display = 'block';
                document.getElementById("lblremark").style.display = 'block';
            }
            if (value == 4)//Reviesd 
            {
                document.getElementById("txtremark").value = '';
                document.getElementById("txtremark").style.display = 'block';
                document.getElementById("lblremark").style.display = 'block';
            }
            if (value == 6) //Approved
            {
                document.getElementById("txtremark").style.display = 'none';
                document.getElementById("lblremark").style.display = 'none';
            }
            if (value == "--Status--")//None 
            {
                document.getElementById("txtremark").value = '';
                document.getElementById("txtremark").style.display = 'none';
                document.getElementById("lblremark").style.display = 'none';
            }
        }
    </script>
    <style type="text/css">
       #Background
        {
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            background-color: #E8EAEC;
            opacity: 0.5;
        }
        #Progress
        {
            position: fixed;
            top: 45%;
            margin-left: 350px;
            width: 300px;
            height: 50px;
            text-align: center;
        }
        .modalBackground
        {
            background-color: #FFFFFF;
            filter: alpha(opacity=40);
            opacity: 0.4;
        }
        .popup
        {
            background-color: #AEAEAE;
        }
    </style>
    <script type="text/javascript">
        function divExpandCollapse(divname) {
            var div = document.getElementById(divname);
            var img = document.getElementById('img' + divname);
            if (div.style.display == "none") {
                div.style.display = "inline";
                img.src = "../../Menu/images/minus.gif";
            }
            else {
                div.style.display = "none";
                img.src = "../../Menu/images/plus.gif";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <acc:heading ID="pagehead" runat="server" HeadingText="Purchase Order Admin Approval" />
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
    </asp:ScriptManager>
    <div style="width: 98%; margin-left: 1%; margin-right: 1%">
        <asp:UpdateProgress DynamicLayout="false" AssociatedUpdatePanelID="UpdatePanel1"
            ID="UpdProgress" runat="server">
            <ProgressTemplate>
                <div id="Background" runat="server">
                </div>
                <div align="center" id="Progress">
                    <img src="../../Images/ajax-loader.gif" alt="progessbar" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UP1" runat="server">
            <%--<Triggers>
                <asp:PostBackTrigger ControlID="CommonControls1" />
            </Triggers>--%>
            <ContentTemplate>
                <div style="margin-left: 35%;">
                    <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
                </div>
                <asp:Panel ID="PanelDisplay" runat="server" Width="100%">
                    <div style="margin-left: 30%;">
                        <div style="float: left;">
                            <%--<custom:Pager ID="custPager" runat="server" OnPageChanged="custPager_PageChanged" />--%>
                        </div>
                        <div style="float: left; margin-left: 10px;">
                           <%-- <MyControls:CommonControls ID="CommonControls1" runat="server" GridviewControlId="grdDisplay"
                                HideColumns="7" />--%>
                        </div>
                    </div>
                    <div id="divprint" runat="server">
                        <asp:GridView ID="grdDisplay" Width="100%" runat="server" AutoGenerateColumns="False"
                            CssClass="gridview" AllowPaging="true" PageSize="20" DataKeyNames="POID" RowStyle-CssClass="gridviewitem"
                            PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="gridview_alternate" OnRowDataBound="grdDisplay_RowDataBound"
                            OnRowCommand="grdDisplay_RowCommand" OnPageIndexChanging="grdDisplay_PageIndexChanging"
                            OnRowCreated="grdDisplay_RowCreated">
                            <Columns>
                                <asp:TemplateField HeaderText="S.No." ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex+1 %>
                                        <a href="Javascript:divExpandCollapse('div<%# Eval("POID") %>');">
                                            <img id="imgdiv<%#Eval("POID") %>" width="9px" border="0" src="../../Menu/images/plus.gif" />
                                        </a>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="P.O. No.">
                                    <ItemTemplate>
                                        <a href="#" onclick="window.open('InventoryPrint/Default.aspx?Poid=<%#DataBinder.Eval(Container.DataItem,"POID")%>','','width=800,height=600,toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no')">
                                            <%#Eval("PONo")%></a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="PO Date" DataField="PODate" />
                                <asp:BoundField HeaderText="PO Created By" DataField="cname" NullDisplayText="-" />
                                <asp:BoundField HeaderText="PO Created On" DataField="cdate" NullDisplayText="-" />
                                <asp:BoundField HeaderText="Finance Approval On" DataField="PODate" NullDisplayText="-" />
                                <asp:BoundField HeaderText="Finance Approval By" DataField="ename" NullDisplayText="-" />
                                <asp:BoundField HeaderText="Status" DataField="Status" HeaderStyle-HorizontalAlign="Center"
                                    ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Left" />
                                <asp:TemplateField HeaderText="Action">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                            CommandArgument='<%#Eval("POID")%>'><img src="../../Menu/images/Edit_user.png" alt="Edit"/></asp:LinkButton>
                                        <asp:Image ID="imgapproved" runat="server" ImageUrl="../../Menu/images/approv.png" />
                                        <asp:Image ID="imgReject" runat="server" ImageUrl="../../Menu/images/cancel.png" />
                                        <asp:Image ID="imgRevision" runat="server" Height="18px" ImageUrl="../../Menu/images/Revised.png" />
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <tr>
                                            <td colspan="100%">
                                                <div id="div<%# Eval("POID") %>" style="display: none; position: relative; left: 15px;
                                                    overflow: auto">
                                                    <asp:GridView ID="gvPORemarksChild" runat="server" CssClass="gridview" AutoGenerateColumns="false"
                                                        Width="96%">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="S.No">
                                                                <ItemTemplate>
                                                                    <%# Container.DataItemIndex+1 %>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="POSTAGE" HeaderText="By Whom" />
                                                            <asp:BoundField DataField="REMARKS" HeaderText="Remarks" NullDisplayText="--" />
                                                            <asp:BoundField DataField="REVISIONORDER" HeaderText="Revision Order" NullDisplayText="--" />
                                                            <asp:BoundField DataField="CDATE" HeaderText="Date" ItemStyle-HorizontalAlign="Right" />
                                                            <%--<asp:BoundField DataField="CTIME" HeaderText="Time" ItemStyle-HorizontalAlign="Right" />--%>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:GridView>
                    </div>
                </asp:Panel>
                <table width="100%" id="grdviewpnl" runat="server" visible="false">
                    <tr>
                        <td style="width: 90%;" align="center">
                            <asp:Panel ID="PnlAdminMain" runat="server">
                                <table class="tablecontent" style="width: 98%; border: 1px solid #818181">
                                    <tr>
                                        <td colspan="4" class="headtd">
                                            Purchase Order Summary
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%">
                                            <b>Bill Format</b><span class="required">*</span>                                    
                                        </td>
                                        <td style="width: 25%">
                                            <asp:Label ID="lblBillFormat" Width="170px" CssClass="input" Height="19px" runat="server"
                                                ValidationGroup="name"></asp:Label>
                                        </td>
                                        <td style="width: 15%">
                                            <b>Currency</b>
                                        </td>
                                        <td style="width: 40%">
                                            <asp:Label ID="lblCurrency" runat="server" Width="270px" CssClass="input" Height="19px"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%">
                                            <b>P.O. No.</b> <span class="required">*</span>
                                            <asp:HiddenField ID="hidemailId" runat="server" />
                                            <asp:HiddenField ID="hidtotalQty" runat="server" />
                                            <asp:HiddenField ID="hidtaxtotal" runat="server" />
                                        </td>
                                        <td style="width: 25%">
                                            <asp:Label ID="lblpurchaseorder" Width="170px" CssClass="input" Height="19px" runat="server"
                                                ValidationGroup="name"></asp:Label>
                                        </td>
                                        <td style="width: 15%">
                                            <b>P.O. Date</b>
                                        </td>
                                        <td style="width: 40%">
                                            <asp:Label ID="lbldate" runat="server" Width="270px" CssClass="input" Height="19px"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%">
                                            <b>location</b>
                                        </td>
                                        <td style="width: 25%">
                                            <asp:Label ID="lbllocation" Width="170px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                        <td style="width: 15%">
                                            <b>Supplier Name</b>
                                        </td>
                                        <td style="width: 40%">
                                            <asp:Label ID="lblsupplier" Width="270px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%">
                                            <b>Payment Mode</b>
                                        </td>
                                        <td style="width: 25%">
                                            <asp:Label ID="lblpaymentmode" Width="170px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                        <td style="width: 15%">
                                            <b>Leased Type</b>
                                        </td>
                                        <td style="width: 40%">
                                            <asp:Label ID="lblleagetype" Width="270px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 15%">
                                            <b>Priority</b>
                                        </td>
                                        <td style="width: 25%">
                                            <asp:Label ID="lblpriority" Width="170px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                        <td style="width: 15%">
                                            <b>Order place By</b>
                                        </td>
                                        <td style="width: 40%">
                                            <asp:Label ID="lblorderplace" Width="270px" CssClass="input" Height="19px" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        <td>
                            <table style="margin-left:-3%;">
                                <tr>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <asp:Button ID="BtnUpdate" runat="server" Text="Approved" Width="100px" CssClass="button"
                                                    OnClientClick="return AlertMsg();" OnClick="BtnUpdate_Click" />
                                                <script type="text/javascript">
                                                    function AlertMsg() {
                                                        var PONo = document.getElementById("lblpurchaseorder").innerHTML;
                                                        var Status = confirm('Are you sure to approve this ' + PONo + ' purchase order.');
                                                        if (Status == true) {
                                                            return true;
                                                        }
                                                        else {
                                                            return false;
                                                        }
                                                    }
                                                </script>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnRev" runat="server" Text="For Revision" Width="100px" CssClass="button" />
                                        <AjaxControl:ModalPopupExtender ID="MPE" BackgroundCssClass="modalBackground" CancelControlID="btnPopUpCancel"
                                            runat="server" PopupControlID="pnlReview" TargetControlID="btnRev">
                                        </AjaxControl:ModalPopupExtender>
                                        <asp:Panel ID="pnlReview" runat="server" CssClass="popup">
                                            <div style="border: 10px Solid #D3D3D3; padding: 15px;">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            Reson of Revision:
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtRevisionRemarks" runat="server" CssClass="input" Height="80px"
                                                                Width="300px" TextMode="MultiLine"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Button ID="btnRevision" runat="server" OnClientClick="return CheckRevisionData();"
                                                                CssClass="button" Text="Save" OnClick="btnRevision_Click" />
                                                            <script type="text/javascript">
                                                                function CheckRevisionData() {
                                                                    var PONo = document.getElementById("lblpurchaseorder").innerHTML;
                                                                    if (document.getElementById("txtRevisionRemarks").value == '') {
                                                                        alert("Please Enter the Revision Remarks.");
                                                                        return false;
                                                                    }
                                                                    if (document.getElementById("txtRevisionRemarks").value != '') {
                                                                        var Statusre = confirm('Are you sure to Revise this ' + PONo + ' purchase order.');
                                                                        if (Statusre == true) {
                                                                            return true;
                                                                        }
                                                                        else {
                                                                            return false;
                                                                        }
                                                                    }
                                                                }
                                                            </script>
                                                            <asp:Button ID="btnPopUpCancel" runat="server" Text="Cancel" CssClass="button" OnClientClick="ClearControlre();" />
                                                            <script type="text/javascript">
                                                                function ClearControlre() {
                                                                    document.getElementById("txtRevisionRemarks").value = "";
                                                                }
                                                            </script>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnRe" runat="server" Text="Reject" CssClass="button" Width="100px" />
                                        <AjaxControl:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
                                            CancelControlID="btnRejectCancel" runat="server" PopupControlID="PnlReject" TargetControlID="btnRe">
                                        </AjaxControl:ModalPopupExtender>
                                        <asp:Panel ID="PnlReject" runat="server" CssClass="popup">
                                            <div style="border: 10px Solid #D3D3D3; padding: 15px;">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            Reson of Reject:
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:TextBox ID="txtRejectRemarks" runat="server" CssClass="input" Height="80px"
                                                                Width="300px" TextMode="MultiLine"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Button ID="btnReject" runat="server" OnClientClick="return CheckRejectData();"
                                                                CssClass="button" Text="Save" OnClick="btnReject_Click" />
                                                            <script type="text/javascript">
                                                                function CheckRejectData() {
                                                                    var PONo = document.getElementById("lblpurchaseorder").innerHTML;
                                                                    if (document.getElementById("txtRejectRemarks").value == '') {
                                                                        alert("Please Enter the Rejection Remarks.");
                                                                        return false;
                                                                    }
                                                                    if (document.getElementById("txtRejectRemarks").value != '') {
                                                                        var StatusRej = confirm('Are you sure to Reject this ' + PONo + ' purchase order.');
                                                                        if (StatusRej == true) {
                                                                            return true;
                                                                        }
                                                                        else {
                                                                            return false;
                                                                        }
                                                                    }
                                                                }
                                                            </script>
                                                            <asp:Button ID="btnRejectCancel" runat="server" Text="Cancel" CssClass="button" OnClientClick="ClearControl();" />
                                                            <script type="text/javascript">
                                                                function ClearControl() {
                                                                    document.getElementById("txtRejectRemarks").value = "";
                                                                }
                                                            </script>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="BtnClose" runat="server" Text="Cancel" CssClass="button" Width="100px"
                                            OnClick="BtnClose_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="pnlview" runat="server" Visible="false" Height="50%">
                    <div id="wrapper" style="width: 100%; margin-left: 1%;">
                        <ul class="tabs">
                            <li><a href="javascript:void(0)" class="defaulttab" rel="tabGeneral">Items</a></li>
                            <li><a href="javascript:void(0)" rel="tabOther">Other</a></li>
                        </ul>
                        <div class="tab-content" id="tabGeneral" runat="server">
                            <asp:GridView ID="grditem" runat="server" AutoGenerateColumns="False" Width="100%"
                                HeaderStyle-BackColor="#ddddee" ShowFooter="true" OnRowDataBound="grditem_RowDataBound">
                                <Columns>
                                    <asp:TemplateField HeaderText="Item Name">
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemName" runat="server" Text='<%# Bind("ItemName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="45%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Unit">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUnit" runat="server" Text='<%# Bind("Unit") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="MPN">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMPNNO" runat="server" Text='<%# Bind("MPNNO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="8%" />
                                        <FooterTemplate>
                                            <b>ItemTotal</b>
                                        </FooterTemplate>
                                        <FooterStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Quantity">
                                        <ItemTemplate>
                                            <asp:Label ID="lblqty" runat="server" Text='<%# Bind("ITEMQTY", "{0:0}") %>'></asp:Label>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lbltotalQty" runat="server"></asp:Label>
                                        </FooterTemplate>
                                        <ItemStyle HorizontalAlign="Right" Width="9%" />
                                        <FooterStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Rate Excl Tax">
                                        <ItemTemplate>
                                            <asp:Label ID="lblrateexcltax" runat="server" Text='<%# Bind("RateExclTax", "{0:0.00000}") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Right" Width="15%" />
                                        <FooterTemplate>
                                            <b>Grand Total</b>
                                        </FooterTemplate>
                                        <FooterStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Amount Payable">
                                        <ItemTemplate>
                                            <asp:Label ID="lbltotalamount" runat="server" Text='<%# Bind("TotalAmount", "{0:0.00000}") %>'></asp:Label>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lbltotalAmount" runat="server"></asp:Label>
                                        </FooterTemplate>
                                        <ItemStyle HorizontalAlign="Right" Width="13%" />
                                        <FooterStyle HorizontalAlign="Right" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle BackColor="#DDDDEE" />
                            </asp:GridView>
                            <div align="right" style="display:none;">
                                <asp:GridView ID="grdtotal" runat="server" Width="25%" AutoGenerateColumns="false"
                                    ShowHeader="false">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <table width="100%">
                                                    <tr>
                                                        <td style="border: 1px solid gray;">
                                                            <b>Item Total</b>
                                                        </td>
                                                        <td style="border: 1px solid gray; width: 52%;" align="right">
                                                            <asp:Label ID="lbltotalqty" runat="server" Text='<%#Bind("totalqty","{0:0}")%>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="border: 1px solid gray;">
                                                            <b>Taxable Amount</b>
                                                        </td>
                                                        <td style="border: 1px solid gray;" align="right">
                                                            <asp:Label ID="lbltaxamt" runat="server" Text='<%#Bind("taxableamt","{0:0.00000}")%>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr style="display:none;">
                                                        <td style="border: 1px solid gray;">
                                                            <b>Post Tax Total</b>
                                                        </td>
                                                        <td style="border: 1px solid gray;" align="right">
                                                            <asp:Label ID="lblposttax" runat="server" Text='<%#Bind("posttaxtotal","{0:0.00000}")%>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr  style="display:none;">
                                                        <td style="border: 1px solid gray;">
                                                            <b>Grand Total</b>
                                                        </td>
                                                        <td style="border: 1px solid gray;" align="right">
                                                            <asp:Label ID="lblgrdtotal" runat="server" Text='<%#Bind("grandtotal","{0:0.00000}")%>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </div>
                        <div class="tab-content" id="tabOther" runat="server">
                            <asp:UpdatePanel ID="updateview" runat="server">
                                <ContentTemplate>
                                    <div style="width: 100%; height: 200px;">
                                        <div style="width: 48%; float: left;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td width="48%">
                                                        <b>Billing Address</b>
                                                    </td>
                                                    <td width="48%">
                                                        <b>Delivery Address</b>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;<asp:Label ID="txtBillAddress" runat="server" Height="60px" Width="200px"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="txtDeliveryAdd" runat="server" Width="200px" Height="60px"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>Terms of Delivery</b>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="txtDeliveryTerms" runat="server" Height="60px" Width="200px"></asp:Label>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div style="width: 48%; float: left;">
                                            <table style="width: 100%;">
                                                <tr>
                                                    <td style="width: 30%; height: 15px;">
                                                        <b>Mode Dispatch</b>
                                                    </td>
                                                    <td colspan="3" style="width: 60%;">
                                                        <asp:Label ID="txtDeliveryMode" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Delivery Date</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="txtDeliveryDate" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Acceptance Criteria</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblacceptancecriteris" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Validity of PO</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblvalidityofPO" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Insurance</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblinsurance" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Warranty</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblwarranty" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Any Special Condition</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="lblanyspecialcondition" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <b>Freight Forwaders</b>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblfreightForwaders" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                    <td>
                                                        <b>Import A/C No</b>
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblImportAcNo" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 15px;">
                                                        <b>Remarks</b>
                                                    </td>
                                                    <td colspan="3">
                                                        <asp:Label ID="txtOtheremarks" runat="server" Width="97%"></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
